package IO流的输入输出;

import org.junit.Test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 * @author aodre , QQ : 480029069
 * @date 2023/3/9 19:22
 */
public class Note {


    public static void main(String []args) throws Exception{
        Scanner sc = new Scanner(System.in);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int lines = sc.nextInt();
        String nums[] ;
        while(lines-- > 0){
            nums = br.readLine().split(" ");
            int a = Integer.parseInt(nums[0]);
            int b = Integer.parseInt(nums[1]);
            System.out.println(a + b);
        }



    }




















    public static void main1(String []args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int a = br.read();
        int b = br.read();
        int c = br.read();
        System.out.printf("%d %d %d",a,b,c);
        System.out.println("    11");


    }





    @Test
    public void test(){
        //  空格 = 32      回车 /n = 10
        System.out.println((int)' ');
        System.out.println((int)'\n');
    }
}


//import java.util.*;
//        import java.io.*;
class Main{
    public static void main(String []args) throws Exception{
//         Scanner sc  = new Scanner(System.in);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while((line = br.readLine()) != null){
            String nums[] = line.split(" ");
            int a =  Integer.parseInt(nums[0]);
            int b = Integer.parseInt(nums[1]);
            System.out.println(a + b);

        }

    }
}


class MyReader {

    /*
     尝试 定义 一下 自己的一个  快速的 IO 流
     处理器
    */

}
